<%-- 
    Document   : login
    Created on : Feb 3, 2012, 10:33:25 PM
    Author     : PhucAn
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Login</title>
        <style>
            .login-form{
                margin:auto;
            }
        </style>        
    </head>
    <body>        
        <form method="post" action="UserAction.do?method=authenticate">
            <table class="login-form">
                <tr>
                    <td></td>
                    <td><h1>Login</h1></td>
                </tr>
                <tr>
                    <td>Username: </td>
                    <td><input type="text" name="username" value="${cookie.remember.value=='true'?cookie.username.value:''}"/></td>
                </tr>
                <tr>
                    <td>Password: </td>
                    <td><input type="password" name="password" value="${cookie.remember.value=='true'?cookie.password.value:''}"/></td>
                </tr>
                <tr>
                    <td></td>
                    <td><input type="submit" name="submit" value="Login"/></td>
                </tr>
                <tr>
                    <td></td>
                    <td>
                      
                    </td>
                </tr>
                <tr>
                    <td></td>                    
                    <td><input type="checkbox" name="remember-me" id="remember-me" ${cookie.remember.value=='true'?" checked ":""}/> Remember me.</td>
                </tr>
                <tr>
                    <td></td>
                    <td><a href="UserAction.do?method=resetPass">Forget your password?</a></td>
                </tr>
            </table>
        </form>

    </body>
</html>

